package BusLib;


import java.io.Serializable;
import java.util.*;


public class StationSchedule implements Serializable {

    int id_;
    int stationId_;
    ArrayList<Date> dateTime_;;

    /*
     * Constructori.
     */
    public StationSchedule(){
        id_=0;
        dateTime_=new ArrayList<Date>();
    }
    public StationSchedule(int id, int station){
        id_ = id;
        stationId_ = station;
        dateTime_ = new ArrayList<Date>();
      }

    /*
     * Metode publice.
     */
    public int Id(){ return id_;}
    public void SetId( int id ){ id_ = id;}
    public int StationId(){ return stationId_;}
    public void SetStationId( int station){stationId_ = station;}

     // Metode ce acceseaza lista cu orarul
    public List<Date> DateTimes() { return dateTime_; }
    public void AddDateTime(Date dateTime) { dateTime_.add(dateTime);  }
    public void ContainsDateTime(Date dateTime) { dateTime_.contains(dateTime); }
    public void DeleteDateTime(Date dateTime) { dateTime_.remove(dateTime); }
    public void ClearDateTimes(){ dateTime_.clear(); }
}
